<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h2>支付方式列表</h2>
    <form action="/gateway/trade/confirm" method="get" target="_blank">
        <table>
            <tr>
                <td>商品名称</td>
                <td th:text="${trade.productName}" ></td>
            </tr>
            <tr>
                <td>购买数量</td>
                <td th:text="${trade.productNum}" ></td>
            </tr>
            <tr>
                <td>订单金额</td>
                <td th:text="${trade.orderMoney}" ></td>
            </tr>
            <tr>
                <td>订单号</td>
                <td th:text="${trade.orderNo}" ></td>
            </tr>
            <tr th:each="way:${payway}">
                <td colspan="2">
                    <!--|和|字符。这些字符在Thymeleaf表达式中用作字符串连接操作符-->
                    <input type="radio" name="wayAndType"
                           th:text="|${way.wayName}-${way.typeName}|"
                           th:value="|${way.wayCode}:${way.typeCode}|">
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="支付">
                </td>
            </tr>
            <input type="hidden" name="userNo" th:value="${trade.userNo}">
            <input type="hidden" name="appKey" th:value="${trade.appKey}">
            <input type="hidden" name="payProductCode" th:value="${trade.payProductCode}">
            <input type="hidden" name="productId" th:value="${trade.productId}">
            <input type="hidden" name="payerId" th:value="${trade.payerId}">
            <input type="hidden" name="payerConcat" th:value="${trade.payerConcat}">
            <input type="hidden" name="pageUrl" th:value="${trade.pageUrl}">
            <input type="hidden" name="notifyUrl" th:value="${trade.notifyUrl}">
            <input type="hidden" name="sign" th:value="${trade.sign}">
            <input type="hidden" name="productName" th:value="${trade.productName}">
            <input type="hidden" name="productNum" th:value="${trade.productNum}">
            <input type="hidden" name="orderMoney" th:value="${trade.orderMoney}">
            <input type="hidden" name="orderNo" th:value="${trade.orderNo}">

        </table>
    </form>
</body>
</html>
